package com.hr.controller;

import com.hr.entity.Functions;
import com.hr.service.FunctionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/functions")
public class FunctionsController {
    @Autowired
    private FunctionsService service;
    /**
     * 条件查询权限列表
     * @param fuc
     * @return
     */
    @RequestMapping("/queryList")
    public List<Functions> queryList(Functions fuc){
        List<Functions> list = service.queryList(fuc);
        return list;
    }
}
